Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in ReadMe + client_kwargs for OpenAI-compatible APIs in Detector + prompt on Decoder #41

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

L3G5
Copy link

@L3G5 L3G5 commented Feb 6, 2025

  1. There was a small misprint in README.md. Should probably be import invariant.testing.functional instead of import invariant.testing.testing.functional as F. But I messed up the table of contents, so probably ReadMe fix should be discarded.
  2. Added client_kwargs parameter for Detector() and InvariantString.extract(). It may be useful if people want to use local models through OpenAI-compatible API
  3. Changed the system prompt for Deetctor for OpenAI. Before the change running quick example ended in validation error
    image
    After the change it was working as intended:
    image
    But now the system prompt became similar to Anthropic. Not sure whether I changed what should have been changed.

@lbeurerkellner
Copy link
Contributor

Thanks a lot, running the tests to see if the updated prompt still works for OpenAI models

@lbeurerkellner
Copy link
Contributor

I see there are some test failures here, I think we have to make sure client_kwargs is supported everywhere.

@L3G5
Copy link
Author

L3G5 commented Feb 20, 2025

Thanks for the feedback (and for the Invariant: really like it)!
I will try to fix it, doesn't seem too hard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants